package com.wit.service.impl;

import java.util.List;

import com.wit.dao.ContactmanDao;
import com.wit.po.Contactman;
import com.wit.service.ContactmanService;

public class ContactmanServiceImpl implements ContactmanService {

	ContactmanDao contactmanDao;
	
	public int getTotalAmount(Contactman contact)
	{
		return contactmanDao.getTotalAmount(contact);
	}
	
	
	public boolean addContactman(Contactman contact) {
		
		return contactmanDao.addContactman(contact);
	}

	
	public List<Contactman> getContactList(Contactman contact, Integer pageNumber, Integer pageSize) {
		
		return contactmanDao.getContactList(contact,pageNumber, pageSize);
	}

	
	public List<Contactman> getContactListByClientId(String clientId) {
		
		return contactmanDao.getContactListByClientId(clientId);
	}

	
	public Contactman getContactmanById(Integer contactId) {
		
		return contactmanDao.getContactmanById(contactId);
	}

	
	public boolean removeContactman(Contactman contact) {
		
		return contactmanDao.removeContactman(contact);
	}

	
	public boolean updateContactman(Contactman contact) {
		
		return contactmanDao.updateContactman(contact);
	}

	/***************************** Getters and Setters ********************************/
	
	public ContactmanDao getContactmanDao() {
		return contactmanDao;
	}

	public void setContactmanDao(ContactmanDao contactmanDao) {
		this.contactmanDao = contactmanDao;
	}

}
